﻿using System;
using System.Diagnostics;
using System.IO;
using Google.ProtocolBuffers;
using Google.ProtocolBuffers.Descriptors;
using Google.ProtocolBuffers.FieldAccess;

namespace com.gexin.rp.sdk.dto
{
	// Token: 0x02000006 RID: 6
	[DebuggerNonUserCode]
	public sealed class GtAuth : GeneratedMessage<GtAuth, GtAuth.Builder>
	{
		// Token: 0x0600000D RID: 13 RVA: 0x0000253B File Offset: 0x0000073B
		private GtAuth()
		{
		}

		// Token: 0x17000006 RID: 6
		// (get) Token: 0x0600000E RID: 14 RVA: 0x0000256B File Offset: 0x0000076B
		public static GtAuth DefaultInstance
		{
			get
			{
				return GtAuth.defaultInstance;
			}
		}

		// Token: 0x17000007 RID: 7
		// (get) Token: 0x0600000F RID: 15 RVA: 0x00002572 File Offset: 0x00000772
		public override GtAuth DefaultInstanceForType
		{
			get
			{
				return GtAuth.DefaultInstance;
			}
		}

		// Token: 0x17000008 RID: 8
		// (get) Token: 0x06000010 RID: 16 RVA: 0x00002579 File Offset: 0x00000779
		protected override GtAuth ThisMessage
		{
			get
			{
				return this;
			}
		}

		// Token: 0x17000009 RID: 9
		// (get) Token: 0x06000011 RID: 17 RVA: 0x0000257C File Offset: 0x0000077C
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GtReq.internal__static_com_gexin_rp_sdk_dto_GtAuth__Descriptor;
			}
		}

		// Token: 0x1700000A RID: 10
		// (get) Token: 0x06000012 RID: 18 RVA: 0x00002583 File Offset: 0x00000783
		protected override FieldAccessorTable<GtAuth, GtAuth.Builder> InternalFieldAccessors
		{
			get
			{
				return GtReq.internal__static_com_gexin_rp_sdk_dto_GtAuth__FieldAccessorTable;
			}
		}

		// Token: 0x1700000B RID: 11
		// (get) Token: 0x06000013 RID: 19 RVA: 0x0000258A File Offset: 0x0000078A
		public bool HasSign
		{
			get
			{
				return this.hasSign;
			}
		}

		// Token: 0x1700000C RID: 12
		// (get) Token: 0x06000014 RID: 20 RVA: 0x00002592 File Offset: 0x00000792
		public string Sign
		{
			get
			{
				return this.sign_;
			}
		}

		// Token: 0x1700000D RID: 13
		// (get) Token: 0x06000015 RID: 21 RVA: 0x0000259A File Offset: 0x0000079A
		public bool HasAppkey
		{
			get
			{
				return this.hasAppkey;
			}
		}

		// Token: 0x1700000E RID: 14
		// (get) Token: 0x06000016 RID: 22 RVA: 0x000025A2 File Offset: 0x000007A2
		public string Appkey
		{
			get
			{
				return this.appkey_;
			}
		}

		// Token: 0x1700000F RID: 15
		// (get) Token: 0x06000017 RID: 23 RVA: 0x000025AA File Offset: 0x000007AA
		public bool HasTimestamp
		{
			get
			{
				return this.hasTimestamp;
			}
		}

		// Token: 0x17000010 RID: 16
		// (get) Token: 0x06000018 RID: 24 RVA: 0x000025B2 File Offset: 0x000007B2
		public long Timestamp
		{
			get
			{
				return this.timestamp_;
			}
		}

		// Token: 0x17000011 RID: 17
		// (get) Token: 0x06000019 RID: 25 RVA: 0x000025BA File Offset: 0x000007BA
		public bool HasSeqId
		{
			get
			{
				return this.hasSeqId;
			}
		}

		// Token: 0x17000012 RID: 18
		// (get) Token: 0x0600001A RID: 26 RVA: 0x000025C2 File Offset: 0x000007C2
		public string SeqId
		{
			get
			{
				return this.seqId_;
			}
		}

		// Token: 0x17000013 RID: 19
		// (get) Token: 0x0600001B RID: 27 RVA: 0x000025CA File Offset: 0x000007CA
		public override bool IsInitialized
		{
			get
			{
				return this.hasSign && this.hasAppkey && this.hasTimestamp;
			}
		}

		// Token: 0x0600001C RID: 28 RVA: 0x000025EC File Offset: 0x000007EC
		public override void WriteTo(ICodedOutputStream output)
		{
			this.CalcSerializedSize();
			string[] gtAuthFieldNames = GtAuth._gtAuthFieldNames;
			if (this.hasSign)
			{
				output.WriteString(1, gtAuthFieldNames[2], this.Sign);
			}
			if (this.hasAppkey)
			{
				output.WriteString(2, gtAuthFieldNames[0], this.Appkey);
			}
			if (this.hasTimestamp)
			{
				output.WriteInt64(3, gtAuthFieldNames[3], this.Timestamp);
			}
			if (this.hasSeqId)
			{
				output.WriteString(4, gtAuthFieldNames[1], this.SeqId);
			}
			this.UnknownFields.WriteTo(output);
		}

		// Token: 0x17000014 RID: 20
		// (get) Token: 0x0600001D RID: 29 RVA: 0x00002674 File Offset: 0x00000874
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				return this.CalcSerializedSize();
			}
		}

		// Token: 0x0600001E RID: 30 RVA: 0x00002694 File Offset: 0x00000894
		private int CalcSerializedSize()
		{
			int num = this.memoizedSerializedSize;
			if (num != -1)
			{
				return num;
			}
			num = 0;
			if (this.hasSign)
			{
				num += CodedOutputStream.ComputeStringSize(1, this.Sign);
			}
			if (this.hasAppkey)
			{
				num += CodedOutputStream.ComputeStringSize(2, this.Appkey);
			}
			if (this.hasTimestamp)
			{
				num += CodedOutputStream.ComputeInt64Size(3, this.Timestamp);
			}
			if (this.hasSeqId)
			{
				num += CodedOutputStream.ComputeStringSize(4, this.SeqId);
			}
			num += this.UnknownFields.SerializedSize;
			this.memoizedSerializedSize = num;
			return num;
		}

		// Token: 0x0600001F RID: 31 RVA: 0x00002722 File Offset: 0x00000922
		public static GtAuth ParseFrom(ByteString data)
		{
			return GtAuth.CreateBuilder().MergeFrom(data).BuildParsed();
		}

		// Token: 0x06000020 RID: 32 RVA: 0x00002734 File Offset: 0x00000934
		public static GtAuth ParseFrom(ByteString data, ExtensionRegistry extensionRegistry)
		{
			return GtAuth.CreateBuilder().MergeFrom(data, extensionRegistry).BuildParsed();
		}

		// Token: 0x06000021 RID: 33 RVA: 0x00002747 File Offset: 0x00000947
		public static GtAuth ParseFrom(byte[] data)
		{
			return GtAuth.CreateBuilder().MergeFrom(data).BuildParsed();
		}

		// Token: 0x06000022 RID: 34 RVA: 0x00002759 File Offset: 0x00000959
		public static GtAuth ParseFrom(byte[] data, ExtensionRegistry extensionRegistry)
		{
			return GtAuth.CreateBuilder().MergeFrom(data, extensionRegistry).BuildParsed();
		}

		// Token: 0x06000023 RID: 35 RVA: 0x0000276C File Offset: 0x0000096C
		public static GtAuth ParseFrom(Stream input)
		{
			return GtAuth.CreateBuilder().MergeFrom(input).BuildParsed();
		}

		// Token: 0x06000024 RID: 36 RVA: 0x0000277E File Offset: 0x0000097E
		public static GtAuth ParseFrom(Stream input, ExtensionRegistry extensionRegistry)
		{
			return GtAuth.CreateBuilder().MergeFrom(input, extensionRegistry).BuildParsed();
		}

		// Token: 0x06000025 RID: 37 RVA: 0x00002791 File Offset: 0x00000991
		public static GtAuth ParseDelimitedFrom(Stream input)
		{
			return GtAuth.CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
		}

		// Token: 0x06000026 RID: 38 RVA: 0x000027A3 File Offset: 0x000009A3
		public static GtAuth ParseDelimitedFrom(Stream input, ExtensionRegistry extensionRegistry)
		{
			return GtAuth.CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
		}

		// Token: 0x06000027 RID: 39 RVA: 0x000027B6 File Offset: 0x000009B6
		public static GtAuth ParseFrom(ICodedInputStream input)
		{
			return GtAuth.CreateBuilder().MergeFrom(input).BuildParsed();
		}

		// Token: 0x06000028 RID: 40 RVA: 0x000027C8 File Offset: 0x000009C8
		public static GtAuth ParseFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
		{
			return GtAuth.CreateBuilder().MergeFrom(input, extensionRegistry).BuildParsed();
		}

		// Token: 0x06000029 RID: 41 RVA: 0x00002579 File Offset: 0x00000779
		private GtAuth MakeReadOnly()
		{
			return this;
		}

		// Token: 0x0600002A RID: 42 RVA: 0x000027DB File Offset: 0x000009DB
		public static GtAuth.Builder CreateBuilder()
		{
			return new GtAuth.Builder();
		}

		// Token: 0x0600002B RID: 43 RVA: 0x000027E2 File Offset: 0x000009E2
		public override GtAuth.Builder ToBuilder()
		{
			return GtAuth.CreateBuilder(this);
		}

		// Token: 0x0600002C RID: 44 RVA: 0x000027DB File Offset: 0x000009DB
		public override GtAuth.Builder CreateBuilderForType()
		{
			return new GtAuth.Builder();
		}

		// Token: 0x0600002D RID: 45 RVA: 0x000027EA File Offset: 0x000009EA
		public static GtAuth.Builder CreateBuilder(GtAuth prototype)
		{
			return new GtAuth.Builder(prototype);
		}

		// Token: 0x0600002E RID: 46 RVA: 0x000027F4 File Offset: 0x000009F4
		static GtAuth()
		{
			FileDescriptor descriptor = GtReq.Descriptor;
		}

		// Token: 0x04000056 RID: 86
		private static readonly GtAuth defaultInstance = new GtAuth().MakeReadOnly();

		// Token: 0x04000057 RID: 87
		private static readonly string[] _gtAuthFieldNames = new string[]
		{
			"appkey",
			"seqId",
			"sign",
			"timestamp"
		};

		// Token: 0x04000058 RID: 88
		private static readonly uint[] _gtAuthFieldTags = new uint[]
		{
			18u,
			34u,
			10u,
			24u
		};

		// Token: 0x04000059 RID: 89
		public const int SignFieldNumber = 1;

		// Token: 0x0400005A RID: 90
		private bool hasSign;

		// Token: 0x0400005B RID: 91
		private string sign_ = "";

		// Token: 0x0400005C RID: 92
		public const int AppkeyFieldNumber = 2;

		// Token: 0x0400005D RID: 93
		private bool hasAppkey;

		// Token: 0x0400005E RID: 94
		private string appkey_ = "";

		// Token: 0x0400005F RID: 95
		public const int TimestampFieldNumber = 3;

		// Token: 0x04000060 RID: 96
		private bool hasTimestamp;

		// Token: 0x04000061 RID: 97
		private long timestamp_;

		// Token: 0x04000062 RID: 98
		public const int SeqIdFieldNumber = 4;

		// Token: 0x04000063 RID: 99
		private bool hasSeqId;

		// Token: 0x04000064 RID: 100
		private string seqId_ = "";

		// Token: 0x04000065 RID: 101
		private int memoizedSerializedSize = -1;

		// Token: 0x0200004F RID: 79
		[DebuggerNonUserCode]
		public sealed class Builder : GeneratedBuilder<GtAuth, GtAuth.Builder>
		{
			// Token: 0x1700026B RID: 619
			// (get) Token: 0x060005B2 RID: 1458 RVA: 0x00002579 File Offset: 0x00000779
			protected override GtAuth.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}

			// Token: 0x060005B3 RID: 1459 RVA: 0x0000DB44 File Offset: 0x0000BD44
			public Builder()
			{
				this.result = GtAuth.DefaultInstance;
				this.resultIsReadOnly = true;
			}

			// Token: 0x060005B4 RID: 1460 RVA: 0x0000DB5E File Offset: 0x0000BD5E
			internal Builder(GtAuth cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}

			// Token: 0x060005B5 RID: 1461 RVA: 0x0000DB74 File Offset: 0x0000BD74
			private GtAuth PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					GtAuth other = this.result;
					this.result = new GtAuth();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}

			// Token: 0x1700026C RID: 620
			// (get) Token: 0x060005B6 RID: 1462 RVA: 0x0000DBB0 File Offset: 0x0000BDB0
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}

			// Token: 0x1700026D RID: 621
			// (get) Token: 0x060005B7 RID: 1463 RVA: 0x0000DBBD File Offset: 0x0000BDBD
			protected override GtAuth MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}

			// Token: 0x060005B8 RID: 1464 RVA: 0x0000DBC5 File Offset: 0x0000BDC5
			public override GtAuth.Builder Clear()
			{
				this.result = GtAuth.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}

			// Token: 0x060005B9 RID: 1465 RVA: 0x0000DBDA File Offset: 0x0000BDDA
			public override GtAuth.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new GtAuth.Builder(this.result);
				}
				return new GtAuth.Builder().MergeFrom(this.result);
			}

			// Token: 0x1700026E RID: 622
			// (get) Token: 0x060005BA RID: 1466 RVA: 0x0000DC00 File Offset: 0x0000BE00
			public override MessageDescriptor DescriptorForType
			{
				get
				{
					return GtAuth.Descriptor;
				}
			}

			// Token: 0x1700026F RID: 623
			// (get) Token: 0x060005BB RID: 1467 RVA: 0x00002572 File Offset: 0x00000772
			public override GtAuth DefaultInstanceForType
			{
				get
				{
					return GtAuth.DefaultInstance;
				}
			}

			// Token: 0x060005BC RID: 1468 RVA: 0x0000DC07 File Offset: 0x0000BE07
			public override GtAuth BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}

			// Token: 0x060005BD RID: 1469 RVA: 0x0000DC2A File Offset: 0x0000BE2A
			public override GtAuth.Builder MergeFrom(IMessage other)
			{
				if (other is GtAuth)
				{
					return this.MergeFrom((GtAuth)other);
				}
				base.MergeFrom(other);
				return this;
			}

			// Token: 0x060005BE RID: 1470 RVA: 0x0000DC4C File Offset: 0x0000BE4C
			public override GtAuth.Builder MergeFrom(GtAuth other)
			{
				if (other == GtAuth.DefaultInstance)
				{
					return this;
				}
				this.PrepareBuilder();
				if (other.HasSign)
				{
					this.Sign = other.Sign;
				}
				if (other.HasAppkey)
				{
					this.Appkey = other.Appkey;
				}
				if (other.HasTimestamp)
				{
					this.Timestamp = other.Timestamp;
				}
				if (other.HasSeqId)
				{
					this.SeqId = other.SeqId;
				}
				this.MergeUnknownFields(other.UnknownFields);
				return this;
			}

			// Token: 0x060005BF RID: 1471 RVA: 0x0000DCC8 File Offset: 0x0000BEC8
			public override GtAuth.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}

			// Token: 0x060005C0 RID: 1472 RVA: 0x0000DCD8 File Offset: 0x0000BED8
			public override GtAuth.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				UnknownFieldSet.Builder builder = null;
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(GtAuth._gtAuthFieldNames, text, StringComparer.Ordinal);
						if (num2 < 0)
						{
							if (builder == null)
							{
								builder = UnknownFieldSet.CreateBuilder(this.UnknownFields);
							}
							this.ParseUnknownField(input, builder, extensionRegistry, num, text);
							continue;
						}
						num = GtAuth._gtAuthFieldTags[num2];
					}
					if (num <= 10u)
					{
						if (num == 0u)
						{
							throw InvalidProtocolBufferException.InvalidTag();
						}
						if (num == 10u)
						{
							this.result.hasSign = input.ReadString(ref this.result.sign_);
							continue;
						}
					}
					else
					{
						if (num == 18u)
						{
							this.result.hasAppkey = input.ReadString(ref this.result.appkey_);
							continue;
						}
						if (num == 24u)
						{
							this.result.hasTimestamp = input.ReadInt64(ref this.result.timestamp_);
							continue;
						}
						if (num == 34u)
						{
							this.result.hasSeqId = input.ReadString(ref this.result.seqId_);
							continue;
						}
					}
					if (WireFormat.IsEndGroupTag(num))
					{
						if (builder != null)
						{
							this.UnknownFields = builder.Build();
						}
						return this;
					}
					if (builder == null)
					{
						builder = UnknownFieldSet.CreateBuilder(this.UnknownFields);
					}
					this.ParseUnknownField(input, builder, extensionRegistry, num, text);
				}
				if (builder != null)
				{
					this.UnknownFields = builder.Build();
				}
				return this;
			}

			// Token: 0x17000270 RID: 624
			// (get) Token: 0x060005C1 RID: 1473 RVA: 0x0000DE2F File Offset: 0x0000C02F
			public bool HasSign
			{
				get
				{
					return this.result.hasSign;
				}
			}

			// Token: 0x17000271 RID: 625
			// (get) Token: 0x060005C2 RID: 1474 RVA: 0x0000DE3C File Offset: 0x0000C03C
			// (set) Token: 0x060005C3 RID: 1475 RVA: 0x0000DE49 File Offset: 0x0000C049
			public string Sign
			{
				get
				{
					return this.result.Sign;
				}
				set
				{
					this.SetSign(value);
				}
			}

			// Token: 0x060005C4 RID: 1476 RVA: 0x0000DE53 File Offset: 0x0000C053
			public GtAuth.Builder SetSign(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasSign = true;
				this.result.sign_ = value;
				return this;
			}

			// Token: 0x060005C5 RID: 1477 RVA: 0x0000DE80 File Offset: 0x0000C080
			public GtAuth.Builder ClearSign()
			{
				this.PrepareBuilder();
				this.result.hasSign = false;
				this.result.sign_ = "";
				return this;
			}

			// Token: 0x17000272 RID: 626
			// (get) Token: 0x060005C6 RID: 1478 RVA: 0x0000DEA6 File Offset: 0x0000C0A6
			public bool HasAppkey
			{
				get
				{
					return this.result.hasAppkey;
				}
			}

			// Token: 0x17000273 RID: 627
			// (get) Token: 0x060005C7 RID: 1479 RVA: 0x0000DEB3 File Offset: 0x0000C0B3
			// (set) Token: 0x060005C8 RID: 1480 RVA: 0x0000DEC0 File Offset: 0x0000C0C0
			public string Appkey
			{
				get
				{
					return this.result.Appkey;
				}
				set
				{
					this.SetAppkey(value);
				}
			}

			// Token: 0x060005C9 RID: 1481 RVA: 0x0000DECA File Offset: 0x0000C0CA
			public GtAuth.Builder SetAppkey(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasAppkey = true;
				this.result.appkey_ = value;
				return this;
			}

			// Token: 0x060005CA RID: 1482 RVA: 0x0000DEF7 File Offset: 0x0000C0F7
			public GtAuth.Builder ClearAppkey()
			{
				this.PrepareBuilder();
				this.result.hasAppkey = false;
				this.result.appkey_ = "";
				return this;
			}

			// Token: 0x17000274 RID: 628
			// (get) Token: 0x060005CB RID: 1483 RVA: 0x0000DF1D File Offset: 0x0000C11D
			public bool HasTimestamp
			{
				get
				{
					return this.result.hasTimestamp;
				}
			}

			// Token: 0x17000275 RID: 629
			// (get) Token: 0x060005CC RID: 1484 RVA: 0x0000DF2A File Offset: 0x0000C12A
			// (set) Token: 0x060005CD RID: 1485 RVA: 0x0000DF37 File Offset: 0x0000C137
			public long Timestamp
			{
				get
				{
					return this.result.Timestamp;
				}
				set
				{
					this.SetTimestamp(value);
				}
			}

			// Token: 0x060005CE RID: 1486 RVA: 0x0000DF41 File Offset: 0x0000C141
			public GtAuth.Builder SetTimestamp(long value)
			{
				this.PrepareBuilder();
				this.result.hasTimestamp = true;
				this.result.timestamp_ = value;
				return this;
			}

			// Token: 0x060005CF RID: 1487 RVA: 0x0000DF63 File Offset: 0x0000C163
			public GtAuth.Builder ClearTimestamp()
			{
				this.PrepareBuilder();
				this.result.hasTimestamp = false;
				this.result.timestamp_ = 0L;
				return this;
			}

			// Token: 0x17000276 RID: 630
			// (get) Token: 0x060005D0 RID: 1488 RVA: 0x0000DF86 File Offset: 0x0000C186
			public bool HasSeqId
			{
				get
				{
					return this.result.hasSeqId;
				}
			}

			// Token: 0x17000277 RID: 631
			// (get) Token: 0x060005D1 RID: 1489 RVA: 0x0000DF93 File Offset: 0x0000C193
			// (set) Token: 0x060005D2 RID: 1490 RVA: 0x0000DFA0 File Offset: 0x0000C1A0
			public string SeqId
			{
				get
				{
					return this.result.SeqId;
				}
				set
				{
					this.SetSeqId(value);
				}
			}

			// Token: 0x060005D3 RID: 1491 RVA: 0x0000DFAA File Offset: 0x0000C1AA
			public GtAuth.Builder SetSeqId(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasSeqId = true;
				this.result.seqId_ = value;
				return this;
			}

			// Token: 0x060005D4 RID: 1492 RVA: 0x0000DFD7 File Offset: 0x0000C1D7
			public GtAuth.Builder ClearSeqId()
			{
				this.PrepareBuilder();
				this.result.hasSeqId = false;
				this.result.seqId_ = "";
				return this;
			}

			// Token: 0x0400033B RID: 827
			private bool resultIsReadOnly;

			// Token: 0x0400033C RID: 828
			private GtAuth result;
		}
	}
}
